<?php
// + -------------------------------------- + //
require($abs_admin_cppath . '/header.php');
$uid=$_GET["uid"];
$conn   = & get_db_conn();
$sql="SELECT username FROM yu_members WHERE uid='$uid'";
$rs  = $conn->GetRow($sql);
$username=$rs["username"];
?>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/popcalendar.js"></SCRIPT>
    <!--cont_box开始-->
    <div class="cont_box">
        <div class="blankH10"></div>
        
        <!--seat结束-->
        <div class="sub_cont">
            <div class="wid800" style="margin-left:10px;">
            	<div class="cp_cont">
                    <div class="cp_cont1">
                        <div class="cp_cont_title">
                            <div class="cp_cont_title_box xz">
                                <span class="f16yh fontB display">购买充值</span>
                            </div>
                        </div>
        <div class="cp_cont_mian">
                            <div class="cp_cont_mianR ">
                <div class="h10"></div>
                <div class="h10"></div>
                 <div class="clear"></div>
                <table border="0" cellpadding="0" cellspacing="10" width="770" id="ymb">
                <form method="post" action="/admin/admin.php?mod=members&action=czl" onsubmit="return check()">
                 <input type="hidden" name="save" id="save" value="<?=$save_flag?>">    
                <tbody>
                 <tr><td width="135" height="40" align="right"><strong>需要充值的用户名</strong>：</td>
                <td width="605" colspan="4"><lable>
               <?=$username?>
                 <input type="hidden" name="uid" id="uid" value="<?=$uid?>">
</lable></td></tr>
                <tr><td width="135" height="40" align="right"><strong>需要充值黄金券数</strong>：</td>
                <td width="605" colspan="4"><lable>
                <input name="allfee" id="allfee" type="text" class="input" size="5" /> 
                张
</lable></td></tr><tr><td colspan="5" align="center"><input id="bt_sub_tj" name="bt_sub_tj" type="submit" class="yxdj_tj" value="购 买"></td></tr>
<!--<tr><td colspan="5" align="left"><strong>易卖宝服务说明：</strong><br />
1、交易项目在黄马褂网上挂牌;挂牌后业务咨询.<br />
2、服务期内无限次查看服务项目意向受让方留言。<br />
3、服务期内公开服务项目联系方式，无限次由意向受让方查询。</td></tr>-->
</tbody></form></table>
 
<div class="h10"></div></div>               
                            </div>   
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--cp_cont1结束-->
                </div>
                <!--cp_cont结束-->
            </div>
            <!--wid800结束-->
            <div class="blankH20"></div>
        </div>
        <!--sub_cont结束-->
    </div>
    <!--cont_box结束-->
    
<script>

//检查
function check(){
    var num = document.getElementById("allfee").value;
    if(num=="" || num==null){
  		alert("请填写购买黄金券数量！");
    	document.getElementById("allfee").focus();
        return false;
    }
	if(confirm('您确定要为会员<?=$username?>充值？')){
		return true;
	}else{
		return false;	
	}
   
}
</script>
</body>
</html>